package com.hansming.bss.modules.sfc.service;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hansming.bss.modules.sfc.dao.CustomerLogDao;
import com.hansming.bss.modules.sfc.entity.CustomerLog;


/**
 *用户积分记录Service
 * @author Hansming
 * @version 2017-12-09
 */


@Service
@Transactional(readOnly = false)
public class CustomerLogService {
	
	@Autowired
	private		CustomerLogDao customerlogDao; 
	
	public void	save( String id,String datetime,Integer score,String detail,String type,String cusid){
		customerlogDao.save(id, datetime, score, detail, type, cusid);
	};
	
	public void	update( String id,String datetime,Integer score,String detail,String type,String cusid){
		customerlogDao.update(id, datetime, score, detail, type, cusid);
	};

	public void delete(String id){
		customerlogDao.delete(id);	
	};
	
	public CustomerLog	selectbyid(String id){
		return customerlogDao.selectbyid(id);
	};
}
